package interfacedemo;

public class Demo {
    public static void main(String[] args) {
        //Dog d = new Dog();
        //method01(d);
        method01(new Dog());//method01(0x7C)，传递的仍然是地址值
    }

    public static void method01(Swim s){//Swim s = d = new Dog()父接口指向子类对象，多态思想
        s.swimming();
    }
}
